.card {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 110%;
    /*以上控制宽高比1:1.1*/
    border: 1px solid #acacac99;
    box-sizing: border-box;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
  }

  .card:hover {
    box-shadow: 0 0 0 2px red;
    border: 1px solid red;
  }

  .card:hover .card-title {
    color: red;
  }

  .card-head {
    position: absolute;
    width: 100%;
    height: 55%;
  }

  .card-head .card-title {
    position: absolute;
    bottom: 0px;
    width: 100%;
    background-color: #fffb;
    padding-left: 10px;
    color: black;
  }

  .card-tag {
    width: 120px;
    height: 60px;
    position: absolute;
    right: 10px;
    bottom: 35px;
    border: 3px solid #fffa;
    background-color: #fffa;
    border-radius: 10px;
    line-height: 100%;
    text-align: center;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 3px #999;
    transform: rotate(-10deg);
    box-sizing: border-box;
  }

  .card-tag>span {
    display: inline-block;
    font-size: 28px;
    line-height: 54px;
    color: #666;
  }

  .card-tag::before {
    display: inline-block;
    content: "";
    height: 100%;
    vertical-align: middle;

  }

  .card-middle {
    position: absolute;
    top: 55%;
    width: 100%;
    height: 33%;
    color: #999;
    font-size: 12px;
    line-height: 20px;
  }
  .card-middle>*{
    padding-left: 13px;
  }

  .card-foot {
    position: absolute;
    top: 88%;
    width: 100%;
    height: 12%;
    border-top: 1px solid #acacac99;
    font-size: 12px;
    color: #999;
    display: inline-block;
  }

  .card-foot::after {
    /* https://blog.csdn.net/weixin_44028365/article/details/120263595 */
    display: inline-block;
    content: "";
    height: 100%;
    vertical-align: middle;
  }

  .card-flag {
    width: 26%;
    height: 20px;
    position: absolute;
    bottom: 20%;
    right: -3px;
    background-color: #19aa6b;
    color: white;
    font-size: 12px;
    padding-left: 10px;
    box-sizing: border-box;
    line-height: 20px;
    border-radius: 20px 0 0 20px;
  }